<?php
/**
 * ContentController
 * 
 * @author naspeh
 * @version $Id: ContentController.php 659 2008-06-15 11:34:26Z naspeh $
 */
class ContentController extends Core_Controller_Action
{
    public function viewAction()
    {
        $tableContents = new Core_Table_Contents();
        $request = $this->getRequest();
        $alias = $request->getParam('name');
        $content = $tableContents->fetchRow(array('alias = ?' => $alias));
        Core_View_Title::set($content->title);
        $this->view->content = $content->body;
    }
}
